<template>
  <div class="tab-menu-right">
   <router-link :to="{path:'/gamedetail',query:{id}}"><img :src="pic" alt="" /></router-link>
    <router-link :to="{path:'/gamedetail',query:{id}}">{{ name }}</router-link>
  </div>
</template>

<script>
export default {
  props: {
    pic: {
      type: String,
      default: "",
    },
    name: {
      type: String,
      default: "",
    },
    id:{
      type:Number,
      default:1
    },
  },
};
</script>

<style lang="scss" scoped>
.tab-menu-right {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;

  > a:first-child {
    img {
      width: 100%;
      border-radius: 20px;
      margin-bottom: 30px;
    }
  }
  > a:last-child {
    width: 100%;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
</style>